﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="spxq.aspx.cs" Inherits="jg_spxq" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            width: 557px;
        }
        .auto-style3 {
            height: 27px;
        }
        .auto-style6 {
            height: 24px;
        }
        .auto-style7 {
            width: 79px;
        }
        .auto-style8 {
            width: 69px;
        }
        .auto-style9 {
            width: 69px;
            height: 23px;
        }
        .auto-style10 {
            width: 79px;
            height: 23px;
        }
        .auto-style11 {
            height: 23px;
        }
        .auto-style12 {
            width: 85px;
        }
        .auto-style13 {
            width: 85px;
            height: 23px;
        }
        .auto-style14 {
            margin-left: 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <table class="auto-style1">
        <caption>
            <asp:Label ID="Label1" runat="server" Font-Size="X-Large" Text="Label"></asp:Label>
        </caption>
        <tr>
            <td class="auto-style2" rowspan="8">
                <asp:Image ID="Image1" runat="server" Height="234px" Width="549px" />
            </td>
            <td class="auto-style3" Align="left" colspan="4">
                <asp:Label ID="Label2" runat="server" Text="距结束拍卖还剩："></asp:Label>
                <span id="t" Font-Size="Large" ></span>
                <span id="t1" Font-Size="Large" >天</span>
                <span id="s" Font-Size="Large" ></span>
                <span id="s1" Font-Size="Large" >时</span>
                <span id="f" Font-Size="Large" ></span>
                <span id="f1" Font-Size="Large" >分</span>
                <span id="m" Font-Size="Large" ></span>
                <span id="m1" Font-Size="Large" >秒</span>
            </td>
        </tr>
        <tr>
            <td Align="left" colspan="4">
                <asp:Label ID="Label3" runat="server" Text="当前拍卖价："></asp:Label>
                <span id="mon"></span>
            </td>
        </tr>
        <tr>
            <td Align="left" colspan="4">
                <asp:Label ID="Label4" runat="server" Text="出价金额：" Font-Size="Large"></asp:Label>
                <asp:TextBox ID="TextBox2" runat="server" Font-Size="X-Large" Width="292px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style3" Align="left" colspan="4">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button3" runat="server" Height="36px" Text="出价" Width="177px" Font-Size="Large" 
                    style="background-color:red; color:white;" OnClick="Button3_Click"/>
                <asp:Label ID="Label16" runat="server" ForeColor="Red" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td Align="left" colspan="4" class="auto-style3"></td>
        </tr>
        <tr>
            <td Align="left" class="auto-style6" colspan="4">
                <asp:Label ID="Label6" runat="server" Text="拍卖信息："></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style8" Align="left">
                <asp:Label ID="Label7" runat="server" Font-Size="Small" Text="保证金："></asp:Label>
            </td>
            <td class="auto-style7" Align="left">
                <asp:Label ID="Label11" runat="server" Font-Size="Small" Text="Label"></asp:Label>
            </td>
            <td class="auto-style12" Align="left">
                <asp:Label ID="Label9" runat="server" Font-Size="Small" Text="加价幅度："></asp:Label>
            </td>
            <td Align="left">
                <asp:Label ID="Label13" runat="server" Font-Size="Small" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="auto-style9" Align="left">
                <asp:Label ID="Label8" runat="server" Font-Size="Small" Text="起拍价："></asp:Label>
            </td>
            <td class="auto-style10" Align="left">
                <asp:Label ID="Label12" runat="server" Font-Size="Small" Text="Label"></asp:Label>
            </td>
            <td class="auto-style13" Align="left">
                <asp:Label ID="Label10" runat="server" Font-Size="Small" Text="竞拍周期："></asp:Label>
            </td>
            <td class="auto-style11" Align="left">
                <asp:Label ID="Label14" runat="server" Font-Size="Small" Text="Label"></asp:Label>
            </td>
        </tr>
        </table>
    <script>
        window.onload = function () {
            setInterval(function () {
                var now = new Date();
                var newday = new Date("<%= nowtime() %>");
                var diff = newday - now + 24 * 60 * 60 * 1000;
                var days = Math.floor(diff / (1000 * 60 * 60 * 24));
                var hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                var minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
                var seconds = Math.floor((diff % (1000 * 60)) / 1000);
                if (days-1 < 0) {
                    document.getElementById("t").innerHTML = 0;
                } else {
                    document.getElementById("t").innerHTML = days-1;
                }
                if (hours < 0) {
                    document.getElementById("s").innerHTML = 0;
                } else {
                    document.getElementById("s").innerHTML = hours;
                }
                if (minutes < 0) {
                    document.getElementById("f").innerHTML = 0;
                } else {
                    document.getElementById("f").innerHTML = minutes;
                }
                if (seconds < 0) {
                    document.getElementById("m").innerHTML = 0;
                } else {
                    document.getElementById("m").innerHTML = seconds;
                }
                document.getElementById("mon").innerHTML = "<%= getmoney() %>";
            }, 1000);
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:Label ID="Label17" runat="server" Font-Size="X-Large" Text="商品简介"></asp:Label>
    <br />
    <asp:TextBox ID="TextBox3" runat="server" Height="406px" OnTextChanged="TextBox3_TextChanged" 
        ReadOnly="True" TextMode="MultiLine" Width="1400px" CssClass="auto-style14" Font-Size="Larger" ></asp:TextBox>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder5" Runat="Server">
</asp:Content>

